<?php
include 'core/init.php';
include 'includes/head.php';
?>
        <div id="container">
            <?php
                include 'includes/header.php';
            ?>
            <div id="content">
                <div id="main">
                    <div id="content_wrapper">
                       <?php
                        if(isset($_GET['s'])) {
                            switch($_GET['s']) {
                                case 'calendar':
                                    include 'includes/sitePages/calendar.php';
                                    break;
                                case 'todo':
                                    include 'includes/sitePages/lists.php';
                                    break;
                                case 'uniandwork':
                                    include 'includes/sitePages/uni.php';
                                    break;
                                case 'training':
                                    include 'includes/sitePages/training.php';
                                    break;
                                case 'finances':
                                    include 'includes/sitePages/finances.php';
                                    break;
                                default:
                                    include 'includes/sitePages/404.php';
                                    break;
                            }
                        } else {
                            echo "not set";
                            }
                       ?>
                    </div>
                </div>
                <?php
                    include 'includes/sitebar.php';
                ?>
            </div>
        </div>
    </body>
</html>
